package com.fs.sys.entityservice;

import com.fs.common.base.service.BaseService;
import com.fs.sys.bean.dto.AppUseLogDTO;
import com.fs.sys.bean.query.AppUseLogQuery;

import java.time.LocalDateTime;

/**
 * 应用使用日志服务接口
 *
 * @author Coder Generator 2025-10-24 08:58:06
 **/
public interface AppUseLogEntityService extends BaseService<AppUseLogDTO, AppUseLogQuery> {
    default void addLog(String userId, String appId) {
        AppUseLogDTO log = new AppUseLogDTO();
        log.setUserId(userId);
        log.setAppId(appId);
        log.setCreateTime(LocalDateTime.now());
        this.insert(log);
    }
}